package com.cily.utils.t_webrtc.utils;

import android.app.Activity;
import android.app.ProgressDialog;

/**
 * user:cily
 * time:2017/5/8
 * desc:
 */
public class DiaUtils {

    private ProgressDialog proDia;
    public void showLoading(Activity ac, String str){
        if (ac == null || str == null){
            return;
        }

        if (proDia == null){
            proDia = new ProgressDialog(ac);
            proDia.setMessage(str);
        }
        proDia.show();
    }

    public void disLoading(){
        if (proDia == null){
            return;
        }

        proDia.dismiss();
    }
}